From: Richard M. Stallman Date: Sun, 25 Jul 2004 17:35:49 +0000 (+0000) Subject: (Fcoordinates_in_window_p): Take account of FRAME_INTERNAL_BORDER_WIDTH. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1~1^2~21536 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=7db746d83673e1ad4ca5764c43b58ec54980eb55;p=emacs.git (Fcoordinates_in_window_p): Take account of FRAME_INTERNAL_BORDER_WIDTH. --- diff --git a/src/window.c b/src/window.c index 409d0972fdd..8a574becd06 100644 --- a/src/window.c +++ b/src/window.c @@ -783,8 +783,8 @@ If they are in the windows's left or right marginal areas, `left-margin'\n\ ly = Fcdr (coordinates); CHECK_NUMBER_OR_FLOAT (lx); CHECK_NUMBER_OR_FLOAT (ly); - x = FRAME_PIXEL_X_FROM_CANON_X (f, lx); - y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly); + x = FRAME_PIXEL_X_FROM_CANON_X (f, lx) + FRAME_INTERNAL_BORDER_WIDTH (f); + y = FRAME_PIXEL_Y_FROM_CANON_Y (f, ly) + FRAME_INTERNAL_BORDER_WIDTH (f); switch (coordinates_in_window (w, &x, &y)) {